package com.qimo.dao;

import com.qimo.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopDao {
    Shop ShopSelect(int shopId);

    List<IndexShoppingListItem> ShopItemList(int shopId);

    int shopApplication(@Param("userId") int userId, @Param("shopName") String shopName);

    Shop ShopCheckUserID(int userId);

    Shop ShopCheckShopName(String shopName);

    int updateUserType(int userId);

    List<ShopOrder> shopOrderSelect(@Param("userId") int userId, @Param("Page") int Page, @Param("limit") int limit);

    int shopOrderSelectCount(int userId);

    int fahuo(@Param("userId") int userId);

    List<Book> selectBook(@Param("page") int page, @Param("limit") int limit);

    int selectBookCount();

    int create_book_item(@Param("book") List<Book> book, @Param("itemId") int itemId, @Param("shopId") int shopId);

    int createItem(CreateItem createItem);
}
